using UnityEngine;
using System.Collections;

public class customGUI : MonoBehaviour {
	
	public GUISkin CustomSkin = null;
	
	public Rect ButtonRect = new Rect( 0, 0, 100 , 50 );
	public string ButtonName = "";
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnGUI()
	{
		if ( CustomSkin != null )
			GUI.skin = CustomSkin;
		
		if ( GUI.Button( ButtonRect, ButtonName ) ) {
			print( "Click" );
		}
		
	}
	
}
